package club.banyuan.SpringBootHrms.repository;

import club.banyuan.SpringBootHrms.model.Admin;

import java.util.List;

public interface AdminDao {
    List<Admin> getAdmins();

    List<Admin> getAdmins(Integer pageNum,Integer pageSize);

    Admin getAdminByUsernameAndPassword(String username, String password);

    void addAdmin(Admin admin);

    void updateAdmin(Admin admin);

    Admin getAdminById(Integer id);

    void deleteAdmin(Integer[] ids);

    void deleteAdmin(String username);
}
